package com.xiege.springboot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiege.springboot.entity.Collection;
import com.xiege.springboot.mapper.CollectionMapper;
import com.xiege.springboot.service.ICollectionService;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 榭歌
 * @since 2023-04-02
 */
@Service
public class CollectionServiceImpl extends ServiceImpl<CollectionMapper, Collection> implements ICollectionService {

    @Resource
    private CollectionMapper collectionMapper;

    @Override
    public int findArticleSum(Integer article_id) {
        Integer res =collectionMapper.findArticleSum(article_id);
        return res;
    }
}
